<form class="layui-form search-form">
    <div class="layui-input-inline">
        <select name="parent_id">
            {foreach $parent_ids as $k=>$v}
            <option value="{$k}">
                {$v}
            </option>
            {/foreach}
        </select>
    </div>
    <div class="layui-input-inline">
        <select name="module">
            {foreach $modules as $k=>$v}
            <option value="{$k}">
                {$v}
            </option>
            {/foreach}
        </select>
    </div>
    <div class="layui-input-inline">
        <input class="layui-input" name="name" placeholder="菜单名称" type="text"/>
    </div>
    <button class="layui-btn layui-btn-sm" lay-filter="searchform" lay-submit="">
        <i class="fa fa-search">
        </i>
        查询
    </button>
    <button class="layui-btn layui-btn-sm layui-plus" type="button">
        <i class="fa fa-plus">
        </i>
        添加菜单
    </button>
</form>
<table class="layui-table data-table" lay-filter="data_table">
</table>
<script id="toolbar_disabled" type="text/html">
    {{# if (d.disabled) { }}
    <a class="layui-btn layui-btn-xs" lay-event="enabled">
        启用
    </a>
    {{# } else { }}
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disabled">
        禁用
    </a>
    {{# } }}
</script>
<script id="toolbar_normal" type="text/html">
    <a class="layui-btn layui-btn-xs" lay-event="edit">
        <i class="fa fa-edit">
        </i>
        编辑
    </a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
        <i class="fa fa-trash-o">
        </i>
        删除
    </a>
</script>
{load href="__module__/admin/menu/index.js" /}
